/**
 * @Description 系统接口 api
 * @Author 莫发达
 * @create 2024-09-04 15:58 周三
 */
import { defineAPIMock } from '@zsamc/app/mock/shared.mjs'
import { Result } from '@zsamc/app/mock/utils'

export default defineAPIMock({
  /**
   * 项目列表
   * @return {{code: number, data: {}, message: string}}
   */
  'POST /api/system/parameter/list': () => {
    // console.log(require('./json/1232442.json').default)
    return Result.ok(require('./json/parameter/list.json').default)
  },

  /**
   *
   * @returns {{code: number, data: {}, message: string}}
   * @constructor
   */
  'POST /api/system/dictionary/list': () => {
    // console.log(require('./json/1232442.json').default)
    return Result.ok(require('./json/dictionary/list.json').default)
  }
})
